import i18n from '@/language/index'

export const t = i18n.global.t

export default function UserPasswordModel(id, password,okPassword) {
    this.id = id;
    this.password = password;
    this.okPassword = okPassword;

    this.rules = {
        password: [
            {required: true, message: t('user.7'), trigger: 'blur'},
            {min: 6, message: t('user.9'), trigger: 'blur'}
        ],
        okPassword: [
            {required: true, message: t('user.8'), trigger: 'blur'},
            {min: 6, message: t('user.9'), trigger: 'blur'}
        ]
    }
}